package tarena.netctoss.po;

import java.util.Set;

/**
 * 管理员 权限
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-3-1
 */
public class Right implements java.io.Serializable {

	private static final long serialVersionUID = 1L;

	/** 权限ID */
	private Integer id;
	/** 权限名称 */
	private String name;
	/** 权限URL */
	private String url;
	/** 权限所在模块 */
	private Operation operation;
	/** 权限操作名称 */
	private Module module;
	/** 权限所对应角色 */
	private Set<Role> roles;

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Module getModule() {
		return module;
	}

	public void setModule(Module module) {
		this.module = module;
	}

	public Set<Role> getRoles() {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

	public Operation getOperation() {
		return operation;
	}

	public void setOperation(Operation operation) {
		this.operation = operation;
	}

}